#include "AI.h"
#include "WorldModel.h"
#include "EntityPlayer.h"

CArtificialIntelligence* CArtificialIntelligence::m_instance=0;

CArtificialIntelligence::CArtificialIntelligence(void){}

CArtificialIntelligence::~CArtificialIntelligence(void){}

CArtificialIntelligence* CArtificialIntelligence::getInstance()
{
	if(m_instance==0)
		m_instance=new CArtificialIntelligence();

	return m_instance;
}

void CArtificialIntelligence::close()
{
	if(m_instance!=0)
	{
		delete m_instance;
		m_instance=0;
	}
}

void CArtificialIntelligence::findGoal(D3DXVECTOR3* goalPosition)
{
	(*goalPosition)=WORLDMODEL->getPlayerPosition();
}

